package hibernate.model;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.NamedQueries;
import org.hibernate.annotations.NamedQuery;

@SuppressWarnings("serial")
@Entity
@Table(name = "sirketprofil", catalog = "emmy")
@NamedQueries({
@NamedQuery(name = "findFrmProFirmaAd", query = "from Sirketprofil where firmaAd = :sFirmaAd"),
@NamedQuery(name = "findFrmProTel1", 	query = "from Sirketprofil where tel1 = :sTel1"),
@NamedQuery(name = "findFrmProTel2", 	query = "from Sirketprofil where tel2 = :sTel2"),
@NamedQuery(name = "findFrmProFax",     query = "from Sirketprofil where fax = :sFax"),
@NamedQuery(name = "findFrmProEmail",   query = "from Sirketprofil where email = :sEmail"),
@NamedQuery(name = "findFrmProil",   	query = "from Sirketprofil where il like :sil"),
@NamedQuery(name = "findFrmProilce",   	query = "from Sirketprofil where ilce like :silce"),
@NamedQuery(name = "findFrmProMah",   	query = "from Sirketprofil where mahalle like :sMahalle"),
@NamedQuery(name = "findFrmProWebadd",  query = "from Sirketprofil where webAdd like :sWebadd")
})
public class Sirketprofil implements java.io.Serializable {

	private Long firmaid;
	private String firmaAd;
	private long tel1;
	private Long tel2;
	private Long fax;
	private String email;
	private String il;
	private String ilce;	
	private String mahalle;
	private String sokak;
	private String numara;
	private String webAdd;
	private String profilAciklama;
	private String ikPolitikasi;
	private String vizyon;
	private String misyon;
	private String kalitePolitikasi;
	private String cevrePolitikasi;
	private Set<Telefon> telefons = new HashSet<Telefon>(0);
	private Set<Tv> tvs = new HashSet<Tv>(0);
	private Set<Klima> klimas = new HashSet<Klima>(0);
	private Set<Buzdolabi> buzdolabis = new HashSet<Buzdolabi>(0);
	private Set<Bellekler> belleklers = new HashSet<Bellekler>(0);
	private Set<Hatacozumu> hatacozumus = new HashSet<Hatacozumu>(0);
	private Set<Duyurular> duyurulars = new HashSet<Duyurular>(0);
	private Set<Temsilci> temsilcis = new HashSet<Temsilci>(0);
	private Set<Aygit> aygits = new HashSet<Aygit>(0);
	private Set<Mp3ipod> mp3ipods = new HashSet<Mp3ipod>(0);
	private Set<Aygityazilimlari> aygityazilimlaris = new HashSet<Aygityazilimlari>(0);

	public boolean equals(Object object) {
        return (object instanceof Sirketprofil) && (firmaid != null) 
             ? firmaid.equals(((Sirketprofil) object).firmaid) 
             : (object == this);
    }
	
	public Sirketprofil() {
	}

	public Sirketprofil(String firmaAd, long tel1, String email, String il,
			String ilce, String mahalle, String webAdd, String profilAciklama,
			String ikPolitikasi, String vizyon, String misyon,
			String kalitePolitikasi, String cevrePolitikasi) {
		this.firmaAd = firmaAd;
		this.tel1 = tel1;
		this.email = email;
		this.il = il;
		this.ilce = ilce;
		this.mahalle = mahalle;
		this.webAdd = webAdd;
		this.profilAciklama = profilAciklama;
		this.ikPolitikasi = ikPolitikasi;
		this.vizyon = vizyon;
		this.misyon = misyon;
		this.kalitePolitikasi = kalitePolitikasi;
		this.cevrePolitikasi = cevrePolitikasi;
	}

	public Sirketprofil(String firmaAd, long tel1, Long tel2, Long fax,
			String email, String il, String ilce, String mahalle,
			String webAdd, String profilAciklama, String ikPolitikasi,
			String vizyon, String misyon, String kalitePolitikasi,
			String cevrePolitikasi, Set<Telefon> telefons, Set<Tv> tvs,
			Set<Klima> klimas, Set<Buzdolabi> buzdolabis,
			Set<Bellekler> belleklers, Set<Hatacozumu> hatacozumus,
			Set<Duyurular> duyurulars, Set<Temsilci> temsilcis,
			Set<Aygit> aygits, Set<Mp3ipod> mp3ipods,
			Set<Aygityazilimlari> aygityazilimlaris) {
		this.firmaAd = firmaAd;
		this.tel1 = tel1;
		this.tel2 = tel2;
		this.fax = fax;
		this.email = email;
		this.il = il;
		this.ilce = ilce;
		this.mahalle = mahalle;
		this.webAdd = webAdd;
		this.profilAciklama = profilAciklama;
		this.ikPolitikasi = ikPolitikasi;
		this.vizyon = vizyon;
		this.misyon = misyon;
		this.kalitePolitikasi = kalitePolitikasi;
		this.cevrePolitikasi = cevrePolitikasi;
		this.telefons = telefons;
		this.tvs = tvs;
		this.klimas = klimas;
		this.buzdolabis = buzdolabis;
		this.belleklers = belleklers;
		this.hatacozumus = hatacozumus;
		this.duyurulars = duyurulars;
		this.temsilcis = temsilcis;
		this.aygits = aygits;
		this.mp3ipods = mp3ipods;
		this.aygityazilimlaris = aygityazilimlaris;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "firmaid", unique = true, nullable = false)
	public Long getFirmaid() {
		return this.firmaid;
	}

	public void setFirmaid(Long firmaid) {
		this.firmaid = firmaid;
	}

	@Column(name = "firmaAd", nullable = false, length = 40)
	public String getFirmaAd() {
		return this.firmaAd;
	}

	public void setFirmaAd(String firmaAd) {
		this.firmaAd = firmaAd;
	}

	@Column(name = "tel1", nullable = false)
	public long getTel1() {
		return this.tel1;
	}

	public void setTel1(long tel1) {
		this.tel1 = tel1;
	}

	@Column(name = "tel2")
	public Long getTel2() {
		return this.tel2;
	}

	public void setTel2(Long tel2) {
		this.tel2 = tel2;
	}

	@Column(name = "fax")
	public Long getFax() {
		return this.fax;
	}

	public void setFax(Long fax) {
		this.fax = fax;
	}

	@Column(name = "email", nullable = false, length = 50)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "il", nullable = false, length = 20)
	public String getIl() {
		return this.il;
	}

	public void setIl(String il) {
		this.il = il;
	}

	@Column(name = "ilce", nullable = false, length = 20)
	public String getIlce() {
		return this.ilce;
	}

	public void setIlce(String ilce) {
		this.ilce = ilce;
	}

	@Column(name = "mahalle", nullable = false, length = 40)
	public String getMahalle() {
		return this.mahalle;
	}

	public void setMahalle(String mahalle) {
		this.mahalle = mahalle;
	}

	@Column(name = "sokak", nullable = false, length = 50)
	public String getSokak() {
		return sokak;
	}

	public void setSokak(String sokak) {
		this.sokak = sokak;
	}

	@Column(name = "numara", nullable = false, length = 20)
	public String getNumara() {
		return numara;
	}

	public void setNumara(String numara) {
		this.numara = numara;
	}

	@Column(name = "webAdd", nullable = false, length = 40)
	public String getWebAdd() {
		return this.webAdd;
	}

	public void setWebAdd(String webAdd) {
		this.webAdd = webAdd;
	}

	@Column(name = "profilAciklama", nullable = false, length = 65535)
	public String getProfilAciklama() {
		return this.profilAciklama;
	}

	public void setProfilAciklama(String profilAciklama) {
		this.profilAciklama = profilAciklama;
	}

	@Column(name = "ikPolitikasi", nullable = false, length = 65535)
	public String getIkPolitikasi() {
		return this.ikPolitikasi;
	}

	public void setIkPolitikasi(String ikPolitikasi) {
		this.ikPolitikasi = ikPolitikasi;
	}

	@Column(name = "vizyon", nullable = false, length = 65535)
	public String getVizyon() {
		return this.vizyon;
	}

	public void setVizyon(String vizyon) {
		this.vizyon = vizyon;
	}

	@Column(name = "misyon", nullable = false, length = 65535)
	public String getMisyon() {
		return this.misyon;
	}

	public void setMisyon(String misyon) {
		this.misyon = misyon;
	}

	@Column(name = "kalitePolitikasi", nullable = false, length = 65535)
	public String getKalitePolitikasi() {
		return this.kalitePolitikasi;
	}

	public void setKalitePolitikasi(String kalitePolitikasi) {
		this.kalitePolitikasi = kalitePolitikasi;
	}

	@Column(name = "cevrePolitikasi", nullable = false, length = 65535)
	public String getCevrePolitikasi() {
		return this.cevrePolitikasi;
	}

	public void setCevrePolitikasi(String cevrePolitikasi) {
		this.cevrePolitikasi = cevrePolitikasi;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Telefon> getTelefons() {
		return this.telefons;
	}

	public void setTelefons(Set<Telefon> telefons) {
		this.telefons = telefons;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Tv> getTvs() {
		return this.tvs;
	}

	public void setTvs(Set<Tv> tvs) {
		this.tvs = tvs;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Klima> getKlimas() {
		return this.klimas;
	}

	public void setKlimas(Set<Klima> klimas) {
		this.klimas = klimas;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Buzdolabi> getBuzdolabis() {
		return this.buzdolabis;
	}

	public void setBuzdolabis(Set<Buzdolabi> buzdolabis) {
		this.buzdolabis = buzdolabis;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Bellekler> getBelleklers() {
		return this.belleklers;
	}

	public void setBelleklers(Set<Bellekler> belleklers) {
		this.belleklers = belleklers;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Hatacozumu> getHatacozumus() {
		return this.hatacozumus;
	}

	public void setHatacozumus(Set<Hatacozumu> hatacozumus) {
		this.hatacozumus = hatacozumus;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Duyurular> getDuyurulars() {
		return this.duyurulars;
	}

	public void setDuyurulars(Set<Duyurular> duyurulars) {
		this.duyurulars = duyurulars;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Temsilci> getTemsilcis() {
		return this.temsilcis;
	}

	public void setTemsilcis(Set<Temsilci> temsilcis) {
		this.temsilcis = temsilcis;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Aygit> getAygits() {
		return this.aygits;
	}

	public void setAygits(Set<Aygit> aygits) {
		this.aygits = aygits;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Mp3ipod> getMp3ipods() {
		return this.mp3ipods;
	}

	public void setMp3ipods(Set<Mp3ipod> mp3ipods) {
		this.mp3ipods = mp3ipods;
	}

	@OneToMany(fetch = FetchType.EAGER, mappedBy = "sirketprofil")
	public Set<Aygityazilimlari> getAygityazilimlaris() {
		return this.aygityazilimlaris;
	}

	public void setAygityazilimlaris(Set<Aygityazilimlari> aygityazilimlaris) {
		this.aygityazilimlaris = aygityazilimlaris;
	}
}